<template>
    <p v-append="html" v-if="show"></p>
</template>
<script>
    import api from "../../../libs/api"
    export default{
        name:"activityModel",
        data () {
            return {
                url:"",
                show:false,
                html:""
            }
        },
        mounted () {
            this.init();
        },
      /*  watch: {
            '$route' () {
                this.init();
            }
        },*/
        methods: {
            init(){
                this.url="http://localhost:8080/static/modeler.html?modelId=5059";
                this.show=true;
                this.$getText(this.url,{}).then((response) => {
                    this.html =response.data;
                }).catch(() => {
                    this.html = '加载失败'
                })
            }

        }
    }
</script>